import { NextOptions, push, redirectTo, reLaunch, switchTab } from "@/router/utils";

export const useRouter = (route: NextOptions) => {
    return {
        push: () => push(route),
        redirectTo: () => redirectTo(route),
        switchTab: () => switchTab(route),
        reLaunch: () => reLaunch(route)
    };
};
